
<%@ page import="br.academia.Funcionario"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName" value="${message(code: 'funcionario.label', default: 'Funcionario')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
	<div class="nav">
		<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label" /></a></span> <span class="menuButton"><g:link
				class="list" action="list">
				<g:message code="default.list.label" args="[entityName]" />
			</g:link></span> <span class="menuButton"><g:link class="create" action="create">
				<g:message code="default.new.label" args="[entityName]" />
			</g:link></span>
	</div>

	<h1 id="pageName">Mostra Funcionario</h1>
	<g:if test="${flash.message}">
		<div class="message">
			${flash.message}
		</div>
	</g:if>
	<table class="IadTableShow">
		<tbody>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.id.label" default="Id" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "id")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.username.label" default="Username" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "username")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.nome.label" default="Nome" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "nome")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.telefone.label" default="Telefone" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "telefone")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.matricula.label" default="Matricula" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "matricula")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.CPF.label" default="CPF" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "CPF")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.departamento.label" default="Departamento" /></td>

				<td valign="top" class="value"><g:link controller="departamento" action="show" id="${funcionarioInstance?.departamento?.id}">
						${funcionarioInstance?.departamento?.encodeAsHTML()}
					</g:link></td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.email.label" default="Email" /></td>

				<td valign="top" class="value">
					${fieldValue(bean: funcionarioInstance, field: "email")}
				</td>

			</tr>

			<tr class="prop">
				<td valign="top" class="name"><g:message code="funcionario.roles.label" default="Roles" /></td>

				<td valign="top" style="text-align: left;" class="value">
					<ul>
						<g:each in="${funcionarioInstance.roles}" var="r">
							<li><g:link controller="shiroRole" action="show" id="${r.id}">
									${r?.encodeAsHTML()}
								</g:link></li>
						</g:each>
					</ul>
				</td>
			</tr>

		</tbody>
	</table>
	<div class="buttons">
		<g:form>
			<g:hiddenField name="id" value="${funcionarioInstance?.id}" />
			<span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
			<span class="button"><g:actionSubmit class="delete" action="delete"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
		</g:form>
	</div>
</body>
</html>
